#ifndef WFIMPORTER_H
#define WFIMPORTER_H

#include <QObject>
#include <QLinkedList>
#include "model.h"

class WFImporter : public QObject
{
    Q_OBJECT
public:
    explicit WFImporter(QObject *parent = 0);
signals:
    void importComplete(model * m);
public slots:
    model * read(QString filename);
private:
    model * createModel(int vpf);
    QLinkedList<float> verts;
    QLinkedList<float> norms;
    QLinkedList<float> txcos;
    QLinkedList<short> vinds;
    QLinkedList<short> ninds;
    QLinkedList<short> tinds;
};

#endif // WFIMPORTER_H
